package com.ssy.jt808.gateway.client.media.pojo;

import com.ssy.jt808.gateway.client.pojo.JtRequestBase;
import com.ssy.jt808.gateway.client.pojo.JtResponse;
import lombok.Data;
import org.springframework.core.ParameterizedTypeReference;

/**
 * 实时音视频传输请求
 *
 * @author wangzezhou
 */
@Data
public class T9600Request extends JtRequestBase{

  /** 操作类型（0=下载 1=删除 2=播放语音文件） */
  private int type;

  /** 语音文件ID */
  private byte[] voiceCodeData;

  /** 语音文件下载地址url */
  private String voiceUrl;

  public T9600Request(){
    super(0x9600);
  }

  @Override
  public String url(){
    return host + "/v1/terminals/messages/9600";
  }

  @Override
  public ParameterizedTypeReference replyTypeRef(){
    return new ParameterizedTypeReference<JtResponse<T0600Reply>>(){ };
  }
}
